Posts

Showing posts from April, 2013

three.js - I have already add an obj model in threejs. How to remove it? -

var लोडर = नया THREE.OBJMTLLoader (); Loader.addEventListener ('लोड', फ़ंक्शन (ईवेंट) {var वस्तु = event.content; object.position.z = -700; दृश्य.एड (ऑब्जेक्ट);}); Loader.load ('obj / male02 / male02.obj', 'obj / male02 / male02.mtl'); ऑब्जेक्ट को कैसे निकालें? आप बस दृश्य निकालें (ऑब्जेक्ट);

dice - 2 Functions executing side by side -

OK, this is the first time that I'm asking a question here, please do not be crazy if this is not a good question is. I have 6 functions which are rolling a dice. I have to make craps games for programming, this game is fully implementing, but I have been opposed to each other, as opposed to each other. For example: I have it: + ------ + | * | | * | + ====== + ------ + | * | | * | + ------ + I need it: + ------ + + ------ + | * | | * | | * | | * | + ------ + + ------ + This is my program yet: import random DEF roll_des1 (): print "+ ------- +" print "| |" Print "| * |" Print "| |" Print "+ ------- +" def roll_division2 (): print "+ ------- +" print "| * |" | Print "| |" Print "| * |" Print "+ ------- +" def roll_disease 3 (): print "+ ------- +" print "| * |" | Print "| * |" Print "| * |" Print "+ ------- +" def roll_dis4 (): p...

file - AWS S3 Object Expiry Issue - Prefix -

Image
I want to use AWS S3 object ending and set up a bucket & amp; A life cycle rule The rule is shown below: I created this structure under "bucket of online dating / dating-crop" and started putting files in this place, which I had removed - tmp files was the idea that these files Automatically will be deleted. When I checked, I was removed "online-dating / dating-crop /" structure Example: files in it Not completely deleted, but it has been completely removed. So I'm assuming that you can not use such termination rule (to clear it below a bucket Point to a location whether the prefix is ​​to reflect the actual file (files) that you want to delete - eg: remove apple .jpg - so you can set the rule in the app * for example? So I think It's not that the thing is that where the files in the bucket actually live, just the prefix files should match? While many S3 browsers (including the WSO Management Console) will show paths as" / ...

http - Android Image resize (resample/downsample) before uploading -

निजी शून्य doFileUpload () {फ़ाइल file1 = नया फ़ाइल (चयनित पृष्ठ 1); स्ट्रिंग urlString = "http://example.com/upload_media_test.php"; कोशिश {एचटीटीपी क्लाइंट क्लाइंट = नया DefaultHttpClient (); एचटीटीपी पोस्ट पोस्ट = नया एचटीटीपी पोस्ट (यूआरएलस्ट्रिंग); फाइल बॉडी बिन 1 = नया फ़ाइल बॉडी (फ़ाइल 1); MultipartEntity reqEntity = नया MultipartEntity (); ReqEntity.addPart ("अपलोडफाइल 1", bin1); ReqEntity.addPart ("उपयोगकर्ता", नई स्ट्रिंगबॉडी ("उपयोगकर्ता")); post.setEntity (reqEntity); HttpResponse प्रतिक्रिया = client.execute (पोस्ट); ResEntity = response.getEntity (); अंतिम स्ट्रिंग response_str = EntityUtils.toString (resEntity); अगर (resEntity! = नल) {Log.i ("RESPONSE", response_str); RunOnUiThread (नया रननाबल () {सार्वजनिक void run () {try.setTextColor (color.GREEN); res.setText ("सर्वर से उत्तर: n" + response_str); टोस्ट। मेक टेक्स्ट (getApplicationContext ()), "अपलोड करें पूर्ण। सर्वर अपलोड निर्देशिका देखें। ",...

kernel - /dev/video0 : invalid argument -

Why I am not able to read this file. I tried to read this file with the cat: cat / dev / video0 but it says cat: / dev / video0: invalid argument Similarly, if I try to use DD: dd if = / Dev / video0 ~ / vid It is still not able to read it. Note that video0 is the tool file for my webcam. I think the show function may be incorrect for the device node "video 0" created in your device is. Give an example below static DEVICE_ATTR (video 0, S_IRUGO | S_UUSR | S_IUGRP | S_Iwoth, video0_show, video0_store); Static ssize_t video0_show (structural device * dev, struct device_attribute * attr, char * buf); Static ssize_t video0_store (structural device * dev, struct device_attribute * attr, char * buf, size_t count); When you cat the device node "Video 0" on the runtime, it calls the "video0_show" function to print something. The error message "cat: / dev / video0: invalid argument" means that the argument for the vide...

oop - php within a function call a constructor and initialize object -

I'm not familiar with php OOP and now I'm in some trouble. I am developing my project in structured programming (not OOP) and I have included a class (created by somebody else) and within my structured function, I should start and work class if you do not understand Here's what I have typed here, please see the code: & lt ;? Php is required __DIR__ '/SourceQuery/SourceQuery.class.php'; Function get_server_info ($ ip, $ port) {define ('SQ_SERVER_ADDR', $ ip); Define ('SQ_SERVER_PORT', $ port); Define ('SQ_TIMEOUT', 5); Define ('SQ_ENGINE', SourceQuery :: GOLDSOURCE); $ Query = new source (); {$ Query-> Try (Connect SQ_SERVER_ADDR, SQ_SERVER_PORT, SQ_TIMEOUT, SQ_ENGINE); $ Result = (array) $ query- & gt; GetInfo (); } Hold (exception $ E) {$ result = array ('player' => gt; 'maxplayer' => gt; 0); } $ Query- & gt; Disconnect (); Not set ($ query); Returns array ('player' = & gt; $ re...

vb.net - Calling Sheet from a WorkBook -

I am trying to call 5th Sheet in an open workbook. Red CurrentRun New Excel.Application Blind CurrentBook Excel.Workbook Slow CurrentSheet Excel.Worksheet Personal Sub General ButtonOpener_Click as as (as: when I seem to be able to do this I open the workbook from this program as the object, as the E EventArgs handles GeneralButtonOpener.Click CurrentRun.Visible = True CurrentBook = CurrentRun.Workbooks.Add (MainTemplatePath) CurrentSheet = CurrentBook.Worksheets (4) CurrentSheet.Activate () End Sub But calling the sheet is open if the file is already open but all my efforts Q: Current Current Microsoft Office.Interop.Excel.Application as Current Book as Microsoft.Office.Interop .Excel.Workbook Dim CurrentSheet as Microsoft.Office.Interop.Excel .worksheet CurrentRun = System.Runtime.InteropServices.Marshal.GetActiveObject ("Excel.Application") CurrentBook = CurrentRun.Workbooks CurrentSheet = CurrentBook.Sheets (4) CurrentSheet.Activate () Or Personal sub but...

Android webview onTouch() don't working right -

मेरा कोड: अंतिम वेबव्यू webView1 = (WebView) findViewById (R.id। उदाहरण); WebView1.setOnTouchListener (नया View.OnTouchListener () {सार्वजनिक बूलियन ऑन टच (देखें वी, मोशन इवेंट इवेंट) {इंटेंट आशय = नया इंटेंट (विज्ञापन.इस, जनरल.क्लैस); शुरूआती गतिविधि (आशय); समाप्त (); वापसी वापसी;} }); webView1.getSettings () setJavaScriptEnabled (सही)। webView1.setBackgroundColor (Color.TRANSPARENT); स्ट्रिंगबिइल्डर एचटीएमएल डाटा = नया स्ट्रिंगबिल्डर ("& lt; html & gt;"); htmlData.append ( "& lt; शीर्ष & gt; & lt; / head & gt;"); HtmlData.append ("& lt; बॉडी स्टाइल = 'मार्जिन: 0; पैडिंग: 0;' & gt;"); HtmlData.append ("लिंक के साथ मेरे websive से बैनर"); htmlData.append ( "& lt; / body & gt;"); htmlData.append ( "& lt; / html & gt;"); WebView1.loadData (htmlData.toString (), "पाठ / html", "आईएसओ 885 9-1"); कृपया, जहां मुझे कोई समस्या है? कैसे मैं पहले आशय ...

multithreading - Impact of thread without name in java -

There are several threads with syntax in my Java application new thread (this) . Start(); When I use code audit, I receive a message Thread declares without a name I want to know what it means and it is fine if I change the declaration to the new thread (this, this.getName ()). .Start(); What is the difference between those and their effectiveness in advance thanks? It's just a humble way to code Pro, reminding you that identifying a thread for easy debugging It should be a name if it comes to doing. There is no other "effect" besides this, it is just a good programming practice. It should work: New thread (This is called " A recognizable name "). Start (); Note that this.getName () will only work if you already get a name from getName () Current class can send.

javascript - format text inside drop down box -

I am currently trying to get a code and the full name of a specialty formatted and displayed in the drop-down box I already have the code to display two values, but they are not formatted. The problem is that not all characters will consume equal amounts of space. Codes or letters can be included in the code. Render: function () {this. $ El.attr ('value', this.model.get ('ptTimeCd')) Html (this .model.get ('ptTimeCd') + "& amp; nbsp; & amp; nbsp; + this.model.get ('ptTimeName')); this return;} It produces a drop down like something: A1 | Some text is CM | Some more text is GB ... | There is no such way Can I align them all so that the vertical always remain in one place? I understand correctly, then there is a problem with your nature .mono {font-family: "courier new", courier, fixed, monospace;} Then your drop-down list items Apply the CSS class in and see if you get something else you want to achieve. ...

wordpress - twentyten submenu CSS -

I am using a conscious child theme for a website that I am creating and reaching "current_item" There is a lot of trouble in "Selector on the sub menu item I can format the main menu item: #access ul li.current_page_item a {} I've tried: #access ul ul li.current_page_item a {} or standard windows editor : #access ul li.current_page_item> A, #access ul li.current_page_ancestor> A, #access u L li.current-menu-ancestor> A, #access ul li.current-menu-item> A, #access ul li.current-menu-parent> A {} but none of them works on sub-menu items ... What do I have to do, change the current color of background and text Submenu item I change its background and text color Want to change Thanks a lot! If you type the background color and text If you want to change the current menu item , you can get it by adding property to the following CSS class ( style.css: line 98 ) #access ul li.current_page_item a {color:...

dataframe - Matching and Adding Factor Counts in R Data Frames -

Exits my question and the question already asked and is different from them. I think imagine that I have a There is a minimum dataset (bird) where each row shows the bird's observation at a given time and place: id, obs, country A, 4, United States of America, B, 3, Can A, 5, United States C, 4, MEX C, 1, USA A, 3, Can D, 1, Blank What do I ideally prefer Conversion of a dataset, removing the tap from a dataset like this: id, tot_obs, country_tot A, 12,2 b, 3,1c, 5,2 I know that I can get by using the number of factors: table (bird $ country) However, Is there a clever, perhaps, a way to remove the tap, connecting the total numbers, finding the numbers of countries and then reconfiguring them in this form? If there is a package that does this, then I am also open for that suggestion! Load the data with stringsacters = FALSE : df All Rows to country = null df plyr package abbreviation to get the desired code: / P> ddply (df, (id), su...

Using cleditor in Internet Explorer 9 causes double-quotes to be incorrectly escaped -

I have moved the Internet in search of the answer to this problem, but, sorry, I have to be compelled to ask for help. / P> I am using jQuery plugin for its rich text / HTML editing capabilities. For the most part, this works fine though, if I have a strange problem in IE9 below: To switch to HTML mode, show the "Source" at the top right of the toolbar "Click the button Paste the following snippet: & lt; P & gt; Double-quoted notes & lt; / P & gt; & Lt; Div onclick = 'alert ("hi")' & gt; Click me & lt; / Div & gt; Switch back to Rich Text Mode and make a trivial change (for example, add a location) Switch back to HTML mode Note how double quotes are now incorrectly saved like this: & lt; Div onclick = "warning (\" hi \ ")" & gt; Click me & lt; / Div & gt; What's going on here? Div onclick = "warning (& amp;; quot; high & quot;)" ...

java - jMock "unexpected invocation" for a method that I have a oneOf(instance).method() expected -

I can not seem to know what I'm doing wrong: This method I tested I am: Public list & lt; Mo & gt; Filter Duplicate sub-listing (list & lt; MO & gt; dbMos) {list & lt; String & gt; Name = lists.newearlest (); (Mo mo: DBMS) {try {string name = mo.getName ()} if (Numbers of names (name)) {dbMos.remove (mo); } And {names.add (name); }} Catch (pre-data expansion) {dbMos.remove (mo); }} Return dbMos; } And this is my test class: package com.rondavu.wt.service.recommendations; Import com.google.common.collect.Lists; Import com.rondavu.data.api.Mo; Import org.jmock.expectations; Import org.jmock.Mockery; Import org.jmock.lib.legacy.ClassImposteriser; Import org.junit.Before; Import org.junit.Test; Import java.util.ArrayList; Import java.util.list; Import static org.junit.assert.assertEquals; Public Class Recommendations alttsstest {funny reference = new wizzy (); RecommendationsCreate Recommendations = New Recommendations (Tools); Last mo mo = refere...

javascript - jQuery: Can't hide element automatically -

मैंने एकाधिक चयन फ़ॉर्म तत्व और एक टेक्स्ट इनपुट । मैंने पाठ इनपुट को क्लिक करने के लिए jQuery के टॉगल () विधि छुपाएं और शो एकाधिक चयन आइटम का उपयोग किया है एकाधिक चयनकर्ता दिखाने के बाद, विज़िटर ctrl / सीएमडी / shift कुंजी के साथ एक से अधिक आइटम चुन सकता है और फिर मुझे एकाधिक चयन आइटम छिपाने की आवश्यकता है। मैं पाठ इनपुट पर फिर से क्लिक करके छुपा सकता हूं। लेकिन मैं चाहता हूं कि वह स्वतः छिपाए, जब मैं एकाधिक चयन आइटम के साथ काम नहीं कर रहा हूं। मैं इसे एक ही पृष्ठ में दो बार उपयोग कर और बूटस्ट्रैप का उपयोग कर रहा हूं। अब मुझे इसे हल करने का तरीका नहीं मिल सका। यहां स्रोत है: कृपया मेरी मदद करें। मैंने आपकी बेस्ड को अपडेट किया मैंने निम्नलिखित कोड को वहां जोड़ा है $ (दस्तावेज़)। क्लिक करें (फ़ंक्शन () {$ ('चयन करें [नाम = "स्थान"]')। स्लाइडअप (300);}); $ ('चयन करें [नाम = "स्थान"]')। क्लिक करें (फ़ंक्शन (e) {e.stopPropagation ();}) .hide ();

php - Showing validation errors for specific input field -

I have a form with file uploads for profile pictures, and I am validating file uploads like this: 'Image' = & gt; Array ('kosher' => array ('rule' = & gt; 'valid image', 'message' = & gt; 'only images are allowed to upload'), 'size' => array ('Rule' = & gt; array ('fileSize', ' Verification runs, and works, but when I present the wrong data, no validation errors are shown on the formation. I am creating this kind of complete: & lt ;? Php echo $ this- & gt; Form- & gt; Create ('profile', array ('type' => gt; ')); ? & Gt; & Lt ;? Php echo $ this- & gt; Form- & gt; Hidden ('id'); ? & Gt; & Lt ;? Php echo $ this- & gt; Form- & gt; Label ('profile picture', 'profile picture'); ? & Gt; & Lt ;? Php echo $ this- & gt; Form- & gt; File ('picture'); ? & Gt; & Lt ;? ...

Get string using RegEx in Java -

I try unsuccessfully to learn and implement RegEx, I'm unsuccessful. Below: The first value is the input string, following the colon values, I have the necessary conditions. Word will always be - & gt; Either input ! (AZ) (number) or Calc! (As) (number) For example! A34 or Calc! D93. Input: Need to be replaced with some static / Val Input (Input! A34 + Calc! D93): Input! A34, Calc! D93 Input! D343 = 1000: Input! D343 Calc! D71 = IF (HasValue (Input! D4), "FormIs (PartofReturn)", IFERROR (1/0)): Calc! D71, Input! D4 Which pattern should I use for this? Try Me: Find Pattern MyPattern = Pattern.compile ("(?: Input |" + "Calc!" + ")! [A-zA-Z] \\ D + "); Matcher foundAMatch = findMyPattern.matcher (input); Hashaseet hashset = new hashset (); While (foundAMatch.find ()) {string s = foundAMatch.group (0); HashSet.add (s); } find pattern MyPattern = Pattern.compile ("(?: Input | | Calc) [AZ] \\ d + "); ...

Some Android clients disconnect and then retry HTTP request after 15 seconds, even though timeout is larger -

I have an Android app that makes an HTTP request to a server that I control. This server relay requests to another server, which I do not control and is currently heavily overloaded, to deal with delays in remote server, I have extended all the timeouts, which I know about. In my own server, I'm seeing some customers (Android app) seconds and then try the same request again, even if I've set up the connection and are getting bigger than that time Have read the timeout. Nginx reports in my server that the log in the form of 499, and it always occurs about 15 seconds after the arrival of the request. Using Sterhurck on my server, I have positively verified that this client is disconnecting (sending an FIN packet) and then retrying the request immediately . I can not reproduce the issue using my phone. Even if I introduce the server to an artificial delay, my phone respects the timeout I have set. On an recent update, I can see a pattern for problematic phones, but I h...

entity framework 5 - EF 5 LINQ joining tables with multiple conditions in ON clause -

I am trying to get involved in the tables using two conditions in my rules, but I get an error operator & amp; Amp; To join tables, type byte and byte can not be applied to the operand. How can I use multiple conditions in the section? using (above db = & amp;; New ReleaseInfo ()) {lvReleaseInfo = (db.ReleaseTranslationsR.C.R.SectionRelease.ReleaseCountryID on db.Countries to join C.CountryID & c.CultureID CultureID r.SectionRelease is equivalent to joining PF in db.Platforms & amp;; .PlatformID pf.PlatformID & amp; equals pf.PlatformID CultureID r. SectionRelease.PublisherID is equivalent to joining the pub in db.Publishers equals pub.PublisherID & amp; amp; pub.CultureID CultureID where r.ReleaseID == SectionID & amp; amp; r.CultureID == CultureID} After You can create an unknown type by each side of the joining: lbReleaseInfo = (db.ReleaseTranslations in R db.Countries on new In joining C, {countryID = r.SectionRelease.ReleaseCountry...

python - Can I add pygame events from a second thread -

Well I have read in different places that the pygame event should be handled in the main thread. I want to do this but my question is, can I add events to a different thread in the event queue? I want to call from pygame.event.post (myEvent) instead of handling the incident in a separate thread and main loop. Is this possible? EDIT: To clarify, I will run a separate thread for asynchronous network I / O when a new message reaches the thread then there will be something to signal to an event in the event queue. Time for some spy work! Looking at the source for event_post , indicates that the C function uses SDL calls SDL_PushEvent , without checking thread for self-protection However, for this, the documentation says: This function thread is secure, and can be safely said with another thread. It seems that this is actually a safe thread.

c# - What is the simplest way to change the behavior of a method during runtime? -

I have a class named enemy , and I want many types of enemies, each enemy will have different movement behaviors, for example, can be directly transferred directly to the player, maintain a certain distance, etc. What would I want to know, what is different behavior, preferably in a class? My current idea is to use a switch , and to include all the behaviors in a method public class enemy {full public} Health; Public damage; // etc etc go public zero (string type) {switch (type) {case "charge": chargeMove (); break; "Maintain" the case: keep uphold (); break; }} Private Zero Charges () {// Luggage} Maintaining Private Zero () {// Accessories} // All Behavior} What should I know, is it better to do this To put everything in a function, or to create a new class for each code that comes from Enemy ? I would like to keep it in a square, so that all enemies can be well stored in ilist without using any castings to use any particular task. Any advice ...

mysql - Administrator URL '&' changed to '&' -

I am working on my localhost and on one system where all the admin URLs include a & amp; , & amp; & amp; Amp; and in turn the system is broken. Is the setting doing this? Why do I need to deactivate? My local host is PHP 5.3 I would like to tell that the other Joomla system is working perfectly and the and in & amp; Amp; . There is no setting which it can do in Joomla 2.5 (as far as I know ). Only thinking that being able to do such a thing should be a system plugin that will re-encode the URL. So my first idea is to check all the system plugins that can be related to URLs (such as SEF things, or redirect plugins or some routing plugins etc.). If it fails then try disabling all system plugins and see if it fixes the problem. Another way to test is to establish a new Fresh Joomla and connect one of the components on broken installation to one. PS: This was a custom system plugin (see comments)

php - Displaying mysql returns in clean and professional tabular report -

This is my second question (to date) this week. My first success was a successful solution, so I thought it might be lucky too. I want to layout / design return returns to my query like this: Date1 | ID | Time | Updated by Status update | 1 | 04:06 | User1 | This is a comment. 2 | 05:05 | User2 | This is a comment again. 3 | 05:08 | User1 | This is another comment. 4 | 07:09 | User3 | And this is also a 2th date. ID | Time | Updated by Status update | 5 | 04:06 | User3 | This is a comment for Day 2. 6 | 05:05 | User3 | This is a comment for the day 2 date again. ID | Time | Updated by Status update | 7 | 04:06 | User1 | This is a comment. 8 | 05:05 | User2 | This is a comment again. 9 | 05:08 | User2 | This is another comment. 10 | 07:09 | User3 | And also here is my php code ... mysql declaration here {resonates "table" = '0' align = Center class = 'tablefont' & gt; tr class = 'colheadbg' & gt; & gt; & gt; date & lt; /...

android - ImageButton size strange issue -

Image
मेरे पास LinearLayout है जिसमें बटन का एक सेट होता है: पहले एक सरल इमेजबटन और अन्य इमेजबटन सबक्लेसेस हैं जिनमें केवल कुछ कस्टम लॉजिक होते हैं (प्रस्तुति अदला-बदली नहीं है) सभी छवियों में एक ही आकार ( 50dp ) होता है, लेकिन सबसे पहला यह है की तुलना में बड़ा खींचा गया है। क्या कोई ऐसी परेशानी का सामना करता है? पीएस: इस लेआउट का उपयोग गोलियों के लिए भी किया जाता है और सब कुछ ठीक है। मैं वास्तव में निराश UPD: किसी और को ऐसी परेशानियों का सामना करना होगा अगर मैं इस मामले के लिए यहाँ छोड़ दूँगा मैंने एक ड्रायनीय नाम में एक मूर्ख टाइपो बना दिया है। फ़ाइल नामों से सावधान रहें। जब मुझे यह समस्या हुई थी, तो मुझे डिज़ेबिल फ़ोल्डरों में से एक में एक ग़लतनाम फ़ाइल थी। / P>

java - Best way to make StringTemplate limit the length of a string? -

This is the easiest to use an example example. In some scenarios, we have list items that contain a lot of text, but showing more than the first few words is not useful, so we deal with it in JSP: & lt; For% (item items: items) {%> & Lt; Li & gt; & Lt;% = StringHelper.shorten (item.getValue (), 30))% & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt;%}% & gt; The filter contains some arguments that it avoids cutting words, and is also included to describe "..." as trivial and so on. I.e.: & lt; Li & gt; Some text & lt; / Li & gt; & Lt; Li & gt; Some other text that is longer ... & lt; / Li & gt; Is there a clear way to do this with the formatter? I know that I can do something like that, but it seems a little hesitation because we are different in different places - Use different numbers: $ items: {i | & Lt; Li & gt; $ I.value; Format = "max 30" $ & lt; / Li &...

javascript - Sorting a column by percentage in Datatables that also contains html -

I have one percent percent of percentages I use to sort most of my table and if you have the most correct columns If you check, the text-based percentages do the right way. The problem is ... I want to remove it and want to change it with CSS bars on the left side of it (the second highest pillar) I do not have to sort these CSS bars with databases. Can get Here is the code that I call each & lt; Td> ... & lt; Div id = "positive" & gt; I use it. & Lt; Div class = "anime" style = "width: 27%;" & Gt; & Lt; Div class = "text" & gt; 27.05% & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; I used the code to sort on the right-most column to use percentages in percentage sections. Any ideas how can I ignore DataTables everyone, just what is the HTML tag in my code above and the percentage based on that? Thanks for any help, you can give it, and please tell me that you need m...

windows - < was unexpected at this time. from curl command line when posting input data as an xml to rest service -

When I post a custom string as an input for the JSON REST service call it is pre-executed Is: curl-d "{\" as \ ": \" as \ ", \" input2 \ ": \" ad \ "}" -i -x post-h " Content-Type: Application / JS "http: //localhost/rtygies/Service1.svc/rest/receivedata1 But when I am posting as an XML as input So this is the default error: curl-d "{\" input 1 \ ": \" & lt; Xml & gt; & Lt; / Xml & gt; \ ", \" Input 2 \ ": \" & lt; Xml & gt; & Lt; / Xml & gt; \ "}" -i -X ​​Post-H "Content-Type: Application / JS" http: //localhost/rtygies/Service1.svc/rest/receivedata1 Error: & lt; This time was unpredictable I am using curls in windows. Does anyone have to say how to post XML as a rescue input. In fact, I do not know what the matter is, but I get an error. Said & lt; This time is unexpected when I tried the following co...

css3 - How to disable css Animation keyframes in opera? -

I have created the animation using CSS3 transform and animation features . Now I want to disable animation by appearing on Opera. When I enter Opera specific code ( @ - o-keyframes leftright {0% {left: -10%;} 100% {CSS rest: 101%;}} ) Animation does not disable itself on opera. But when I default to the animation code ( @keyframes leftright {0% {Left: -10%;} 100% {left: 101%;}} ) it automatically on Opera Disables. I want to disable it on Opera without removing the default code. This code is @keyframes leftright {0% {left: -10%; } 100% {left: 101%;}} @ -moz-keyframe byteright {0% {left: -10%; } 100% {left: 101%;}} @ -webkit-keyframe byteright {0% {left: -10%; } 100% {left: 101%}} @ -o-keyframes on right side {0% {left: -10%; } 100% {left: 101%;}} Is there any way to do this work? Before doing anything, you always Unfreeze keyframe last . This means that you must have this: @ - Mozziz- Left keyframes {0% {left: -10%;} 100% {left: 101%;}} @ -webki...

How to show selected value from dropdown pagination data in cakephp? -

I have a problem in endorsement. I have three dropdowns which are showing the results that I have selected completely but when I click The problem here is on pageing number like 1. 2 | 3 When I click on 2, the selection option disappears and the default result will be found, I tried a lot for two days, but I did not get the success, I want to think that when click on page number 2 it's my page 2 to show the dropdown result selected, I can not understand what the problem is running, this is my code $ this-> Pagination on the page = array ('position' = & gt; array ('association_id' = & gt; $ associationId, 'is_archive' = & gt; false, 'AssocMember.mem_id' = & gt; $ request [ ] ['Mem_type'], 'AssocMember.status_id' = & gt; $ request ['associations'] [' condition '], $ cond4, release ($ keywordkline) $$ keywordQuery: "",),' border '=' & Gt; 10); $ Member = $ this- ...

python - remote api Error-10061 after upgrade to gae 1.7.6 -

Remote_AP does not work anymore after switching to gae 1.7.6. 1.7.5 worked fine. App Yal Handlers: - url: /rugad_remote.* Script: google.appengine.ext.remote_api.handler.application # 1.7.5 Script: google.appengine.ext .remote_api.handler.app # 1.7.6 Login: Admin rugadweb.py HOST = '127.0 .0.1: 8080' #test #HOST = 'xxx. appspot.com '#prod def Auth_func (): return none, no #test #return' xxxxx ',' yyyyyyyy 'remote_api_stub.ConfigureRemoteApi #prod (no,' / rugad_remote traceback (most recent call last): file: 1.7.6 # Rimot_pr_stop. Configrremotdetatoar (none, '/ rugad_remote', auth_func, HOST) # 1.7.5 "C: \ rugad \ rugadweb.py", line 28, remote_api_s Not tub.ConfigureRemoteApi (no, '/ rugad_remote', auth_func, host) file "C: \ Program Files (x86) \ Google \ google_appengine \ Google \ appengine \ ext \ Remo te_api \ remote_api_stub.py", line 725, ConfigureRemoteApi APP_ID = GetRemoteAppIdFromServe...

How to display the execution result in remote linux screen(command input via ssh)? -

Everyone: I need to connect to remote Linux, I already know How to run and display the GUI program in Remote Linux It can be: ssh username @ ip export DISPLAY =: 0.0 Firefox & amp; However, my goal is not to have X Window System in Linux, I need to display the performance results in the remote Linux's screen, for example: My PC A, the remote PC is B After connecting to a use SH Access B, B, I type LS in A and press Enter Display the results in B's screen Need (TTI or whatever, I do not know what to say Should be) Any ideas? Thanks for your help. Basic Thoughts: $ ssh user @bb $ run -programm & gt; / Dev / console (I use the command $ and b $ respectively to open A and B .) Its problem: b $ ls -l / dev / console crw ------- 1 root root 5 only 1/9 9: 10 / dev / console can only write to root / dev / console . Possible solutions: $ b run-program | Sudo tee / dev / console & gt; / Dev / null (prevents you from appearin...

javascript - How to serve all dependencies for Google Charts from the local server itself -

Scenario: We are developing a web application, which is basically a local LAN Works on This includes a report module, which includes alternate chart reports. I found on real data, developed a prototype for bars, columns, and many different charts. Problem: Offline does not work, I try to dump the dependencies on the locality, not being able to understand all dependencies on the server. Question: Can anyone tell me how to do it? How to serve all the dependencies to the local server. Simple answer: You can host Google charts on your own server. You may want to take a look at the libraries and .

Schedule update SQL Query using Php -

Image
I have is manually collected from a website with a mobile phone prices and external Siaits all prices, I want to schedule updated prices ( $ emag, $ koyos ) every 3 days. I manually update query is: $ editare = "update Modle set Koyos = '$ Koyos', emag =' $ emag 'WHERE id =' { $ Id} '"; If ($ dbh- & gt; Query ($ editare)) {print " > How do I automate this question in 3 days? ! My webhost cronjob SSH, cPanel or Plesk ! First of all, you do not support the need to write a script in PHP that you want to do (Basically, this is just your PHP code that you want to run at scheduled times, there is no additional requirement). Then, cron jobs , you schedule it to run as often as you want. * / 4 * * * * wget --spider file.php Runs in the cronat every 4 minutes you might want to read on some. Here is a picture from the link given below: How to schedule time: Cronjobs originally schedules every time that so often run...

javascript - Split JS string via Regex? -

I have MMYY pattern (end of credit card) me It is necessary to analyze each section (01 and 14): So I tried: '0114'.split (/ \ d {2} / i) // ["", "", ""] It actually sees 2 digits as a separator and therefore I do not get anything. However, I have been able to do this with: '0114' match (/ \ d {2} / ig) // ["01" "14"] But I'm surprised that split . Can I do also with split ? For example: "1234" .split (/ (? = $$$) /) = & gt; A common solution for arbitrary length strings seems impossible, the best we can get is something like this: code> str.split (str.plength and 1? / (? = (?:?) *. $) /: / (? = (??? ::)) + $) /)

sql - Only Last Date Result per Order? How? -

तो मूल रूप से मुझे यह तालिका मिली OrderID | ChangeDate | ------- | ----------------------- | ऑर्डर 1 | 2013-03-17 14: 40: 47.000 | ऑर्डर 1 | 2013-03-20 16: 09: 09.000 | ऑर्डर 2 | 2013-03-12 12: 34: 09.000 | ऑर्डर 3 | 2013-03-20 18: 30: 12.000 | ऑर्डर 2 | 2013-03-20 12: 39: 49.000 | मैं क्या चाहता हूँ और इसकी आवश्यकता है, केवल प्रत्येक ऑर्डरआइडी का सबसे ऊपर है, (अभी मैं लगभग 28000 परिणाम [संपूर्ण तालिका] प्रत्येक ऑर्डर के साथ 100 गुणा या इतने पर प्राप्त कर रहा हूं) मुझे सबसे ऊपर की एक सूची (अंतिम परिवर्तन की तारीख) की वर्तमान कड़ी है जिसकी मुझे कुछ ऐसा दिखता है: चुनें a.AuftragID, a.Kunde, अधिकतम (ChangeDate) आदेश से O इनरजिइन factTable O.OrderID = F.OrderID समूह द्वारा a.AuftragID, a.Kunde मैं केवल शीर्ष क्रम के रूप में प्राप्त करने के लिए क्या कर सकता हूँ (नवीनतम परिवर्तन तिथि परिणाम) प्रति आदेश हमेशा की तरह, बहुत आपकी मदद के लिए धन्यवाद! का प्रयोग करें ROW_NUMBER : सीटीए के साथ (SELECT F.auftragid, F.kunde, changeate, rn = Row_number ()) (ऑडर्र ऑर्डर द्वारा ऑ...

ios - Get a child from a certain class -

मैं एक ViewController @interface PagerViewController का उपयोग कर रहा हूँ: UIViewController & lt; UIScrollViewDelegate & gt; जहां मैं अन्य एक बच्चे के रूप में ViewControllers ( addChildViewController ) उन व्यू नियंत्रक जो मैं जोड़ता हूं अंतर वर्गों से हैं लेकिन वे सभी UIViewController से वंशानुगत होते हैं। मैं इस कोड का उपयोग करके उनके माध्यम से लूप कर सकता हूँ: के लिए (एनएसयूइंटेगर i = 0; i & lt; (अहस्ताक्षरित पूर्णांक) [_ app.windows count]; i ++) {NSLog (@ "% @" ((MyViewController *) [self.childViewControllers objectAtIndex: i])। GetQAnswer); } हालांकि, मुझे हमेशा इसे सही पर डालने की जरूरत है (उपरोक्त उदाहरण में मैंने इसे MyViewController में डाल दिया था। समस्या यह है कि उस पर विभिन्न वर्गों के कई बच्चे हैं, इसलिए क्या होगा अगर मैं केवल "MyViewController" के बजाय कक्षा "अन्य दृश्य नियंत्रक" से बच्चे चाहता हूं? आप कर सकते हैं उदाहरण के लिए: यदि ([ऑब्जेक्ट isKindOfClass: [anotherViewController वर्ग]]) {} / div>

linux - How can i do "source in" using shell script to set environment variable -

To set the environment variable, when I start working in my Linux workbook (using the command given below) I am sourcing in the environment /opt/kmc/pbs/env/1.1/etc/setup.env rev.52 while adding this line ( ". / Opt / kmc / pbs / env / 1.1 / etc / setup.env rev.52 " ) in my shell script It is not working, it gives some error I also have the nickname Even if it is not able to execute it. alias test = '/opt/kmc/pbs/env/1.1/etc/setup.env rev.52' test Then I ordered this How can I "source in" the script instead of giving it manually? You can use the source command is: source / path / to / file And note, if you mention "some error", then we can not help a lot with that . Unless you are specifying what type of errors were there.

r - How do I replace NA in one column if another column's value is greater than 0? -

I have 8 census lines ( L1: L8 ) currently in some records When they are placed after 0 instead of NA , I will enter NA in each column ( L1: L8 ) 0 when the respective attempts column ( EFFORT_L1: EFFORT_L8 ) has a value greater than 0 (which means that they are censored). Sample data: df sample code for a single column (note I'm looking for an efficient solution to all eight columns): df [is.na (df [, "L1"]) & amp; Df [, "EFFORT_L1"] & gt; 0, "L1"] & lt; - 0 df [paste0 ("L", 1: 8) ] [Is.na (df [paste0 ("L", 1: 8)]) and; Df [paste0 ("EFFORT_L", 1: 8)]> 0] & lt; - 0 Result: & gt; df doers year ART L1 2 L3 L4 L5 L6 L7 L8 EFFORT_L1 EFFORT_L2 1 02C2H 1997 009 0 0 0 0 0 0 0 0 10 10 2 02C2H 1997 031 0 0 0 0 0 0 0 0 10 10 3 02C2H 1997 012 0 7 0 0 0 0 0 10 10 4 02 C 2 H 1997 057 0 0 0 0 0 0 0 0 10 10 5 02 C 2 H 1 99 0 065 2 3 1 1 1 0 0 10 10 6 02 C 2 H 1997 073 0 0 0 0 0...

java - Delete a file without delete permission -

Can anyone delete the file in Java with the permission to delete the file? OK, if you've mentioned the shell script, then it's a partial job: And your user execute sudo external code such as sudo rm -f yOUR_PATH .

django-mailer creates multiple db entries from email address -

"itemprop =" text "> I just executed the Django-Mailer as it seemed to send mail asynchronously from Django as the best way Have done For some reason, the DB entry is being created for each letter of the recipient's email address, in which the "to do" field contains a letter .... Here is a screenshot: I have cut the remaining entries so that the full address can not be shown, but it is enough to say that the "to" field of all entries adds the user's email address ( An email to clarify Creates an object for each letter of the e-mail address as soon as is) The code generated mail :. import mailer notifications send_mail .models import EmailNotifications users_to_email = EmailNotifications.objects.filter (\ Product = Product) If users_to_email: for user_to_email in users_to_email: the_score = self.rating user = user_to_email .user name = '% s% s'% (STR (user.first_name), \ str (user.last_name)) user_email = user....

jsf 2 - ViewScope: Target the "right" composite component's object instance -

jsf 2 Understanding the scope of the view scope and moving down, I'm running into problems again There are many instances of bound object of my composite component and the values ​​set do not target "true". I have the same initial setup as I have now created a Composite Component: & Lt; / Mixed: Implementation & gt; and its Java equivalent @FacesComponent (value = "helloWidget") extends the public class HelloWidget UINamingContainer implies Serializable {Private Static FINAL} Long serialVersionUID = 2L; Private boolean visible; Public Zero Show () {System.out.println ("Setting the true state to visible state" +); Visible = true; } Public Zero Hide () {System.out.println ("Setting a visible position false" +); Visible = false; } Get the visible position of the public string getVisibleState () {System.out.println ("" + + "(" + visible + "); Return String.valueOf (visible);}} I then upgrade...

string - dynamic change url flash builder -

I am trying to create an app with a list of words and sound for each word of this word XML & lt; Bla & gt; & Lt; List & gt; & Lt; Words & gt; Hello & lt; / Words & gt; & Lt; Audio & gt; Hello.mp3 & lt; / Audio & gt; & Lt; / List & gt; & Lt; List & gt; & Lt; Words & gt; Bye & lt; / Words & gt; & Lt; Audio & gt; Bye.mp3 & lt; / Audio & gt; & Lt; / List & gt; & Lt; / Bla & gt; Source: & lt; S: Navigation content & gt; & Lt; S: Button label = "LISTIN" Click = "PlaySund ();" /> & Lt; / S: navigationContent & gt; Script: & lt; Fx: script & gt; & Lt ;! [CDATA [Import Flash. Media. *; [Embed (source = "acceptance / voice / {data. Audio}")] [bindable] public work sndCls: class; Public var snd: sound = new sndcls () as sound; Public var sndChannel: sound channel; Public Function Place (): Zero {snd...

c - Can someone give me the example of this algorithm -

Written in great code section 1, this algorithm is written for the conversion of an integer value of decimal digits string: / P> Start a variable with zero; It will hold the last value. If there are no other numbers in the string, then the algorithm is complete, and the variable holds numeric values. Get the next point ( Multiply the variable by ten and then add to the digits obtained in step 3. Go to step 2 and repeat. I do not know how the conversion is happening. Please give an example of this Consider the string string variable (1134 0 (1) 134 0 * 10 + 1 = 1 1 (1) 34 1 * 10 + 1 = 11 11 (3) 4 11 * 10 + 3 = 113 113 (4) 113 * 10 + 4 = 1134

wordpress - php reading posted arrays -

This is probably a simple question, but I have tried nothing without doing anything: Customizing an opensource WordPress plugin when I post on my customized PHP file and var_dump () on the $ _ POST variable, I get the following: array (7) {["Hellomail"] => Array (3) {["email"] = & gt; Array (7) {["subject"] = & gt; String (4) "ASDA" ["from_name"] = & gt; String (14) "Myplugin" ["se_mail"] = & gt; String (12) "myplugin@myplugin.com" ["replyto_name"] = & gt; String (14) "Test" ["replyto_email"] = & gt; String (12) "myplugin@myplugin.com" ["Param"] = & gt; Array (1) {["schedule"] = & gt; Array (2) {["day"] = & gt; String (10) "2013/03/21" ["Time"] = & gt; String (8) "00:00:00"}} ["email_id"] => String (2) "25"} ["campaign_list...

java - how to set tcp.nodelay when i use httpurlconnection -

How to set tcp.nodelay for the code given below url = new URL (urltext); HttpURLConnection conn = (HttpURLConnection) url.openConnection (); As far as I know that you tcp.noDelay 'HTTRL connection' is on because it does not allow any interface to underline the TCP socket. What can I recommend because it provides the mechanism to set up several TCP options? Take a look at this

sql - Oracle query performance degrades when inserting many rows in a single transaction -

In a transaction I am inserting rows into a table, before joining the line to see that The query is already a row with which I am about to insert What I see is that the query becomes very slow within my transaction to check the key, but it is faster with another transaction, and the next transaction is faster. I can not break this work into small transactions because as I am processing, there is a need to be in a transaction. Can anyone do this to do the selected question fast in this transaction? Therefore, please add the constraint / primary key it will allow you to remove all your selections Or add index for the column you selected.

android - Forge.ui.enhanceInput - change event not fired on input -

I for Forge.ui.enhanceInput to show a native time picker for I am using. On Android & lt; Input type = "time" & gt; . The problem occurs when the original time picker is made of profit, there is no change on the input. Forge.Y. Ehance either does not have any callback on the input, so I currently know Not that the date has been recorded. Is there a solution for this, so I know when a date has been filed? Listen to the input element on the 'Blurred' event. Because due to our v1.4.23 release the original picker completes the event when done:

c# - how to call a javascript function using asp.net? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब यह वही है जो कोशिश कर रहा है im इनलाइन जेएस के कार्य को बुला रहा है लेकिन मैं काम नहीं कर रहा था & lt;% @ पेज भाषा = "सी #" ऑटोइवेंटवायरअप = "सच्चा" कोडबहिन्द = "वेबफॉर्म 1। एस्पक्स सी" इनहेरिट्स = "जावास्क्रिप्टट्यूटोरियल। वेबफॉर्म 1"% & gt; & Lt;; DOCTYPE HTML PUBLIC "- // W3C // डीटीटी एक्सएचटीएमएल 1.0 ट्रांसक्रिप्शन // एन" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; head runat = "server" & gt; & Lt; title & gt; जावास्क्रिप्ट ट्यूटोरियल & lt; / title & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" भाषा = "जावास्क्रिप्ट" & gt; फ़ंक्शन ऑब्जेक्ट्स () {चेतावनी ("ठीक है"); } & Lt; / script & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; form runat = "...

Which collation choose for SQL Server instance and database? -

I am working on a Windows application based on a database of SQL Server 2008 R2 This application is currently available in Belgian companies. Is sold, which use four languages: English, French, Dutch, German and soon, this application will be sold to other countries in Europe and beyond. Here are the questions I ask myself: For SQL Server example What language to choose? Do we want the same option on the sensitivity of the case and the other accents of the database? Should be a binary collation? Impact on temporary treatment (tempdb)? For the database What language to choose? Should the location to be used with the Windows Client application take into account? For the development environment and Thank you for your help. P When working with a foreign language, or multiple languages If I do CI_AI_SI to prevent any particular character, the issues associated with the character / string field (i.e. inclusion, cast, etc.) As a result, the language sh...

mongoengine datetime field and python datetime -

I am facing the following issue which I did not come into my second application. = Me.IntField (required = true, default = 0) In the shell, I tried the following: Sprint = Sprint.obies.jet ( Sequence = 1) Sprint & Sprint: Sprint Object & gt; Sprint.start_date - datetime.utcnow () Tracebacks (Lastest Call Final): File "& lt; stdin>", Line 1, & lt; Module & gt; TypeError: - Unsupported operand type (s) for 'Tuple' and 'datetime.datetime': Then I print sprint.start_date, thus typing it instead of dated object Returns to: sprint.start_date (& lt; mongoengine.fields.DateTimeField object 0x22b7dd0 & gt ;,) So I did Sprint .start_date [0] - datetime.utcnow () traceback (last most recent call): File "& lt; stdin>", line 1, & lt; Module & gt; TypeError: - Unsupported operand type (s) for 'DateTimeField' and 'datetime.datetime': I did not find this problem in my previous pr...

Encoding with spring MVC -

I am using Spring MVC to handle my request and I need to send the string to search. For example, I am sending Caçapava , but somewhere it was converting this code, everywhere I was looking for my encoding UTF-8 . To create my view, I'm using jackson to manage my JSON and ExtJs . My request is ok, so the problem is my ExtJs Not with the request. Request parameter: query string parameter _dc: 1363866108143 nomeCidade: Caçapava page: 1 start: 0 Limit: 50 Can anyone help me? web.xml ) : & lt; Filter & gt; & Lt; Filter-name & gt; CharacterEncodingFilter & lt; / Filter-name & gt; & Lt; Filter range & gt; Org.springframework.web.filter.CharacterEncodingFilter & lt; / Filter range & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Encoding & lt; / Lastname & gt; & Lt; Ultimate Price & gt; UTF-8 & lt; / Super-valued & gt; & Lt; / Init-param & gt; &...

extjs - ext js 4.2.0.633 - grid column header not showing filter options -

Image
The filter option in the grid column header is not working with ext js 4.2.0.633, but extjs-4.1.1 I am using this Expand: 'Qreda.view.BaseRemoteGrid', Store: 'OptInOutConfigs', nickname: 'widget.dndgrid', Frame: True, InitComponent: function () {this.column = [{header: 'keyword', datindex: 'keyword', renderer: function (value, metadata, record) {return value ? Value.name: null;}, filter: true}, {header: 'triggered keyword', dataindex: 'trigger keyword', filterable: correct}, {header: 'category', dataindex: 'range id', filter : {Type: 'list', store: Ext.getStore ('(category, option) {Ext.getStore (' CgCategories '), labelField:' categoryName '}}]; this.callParent (); this.setTitle (' MENU_DND_MANAGEMENT '); this.on (' firstseader ', function (component, option). Es') load (); }, this); } }); Someone helped me solve this Please use the JS file Do the ...

wordpress - W3C Validator doesn't load the actual sources -

I wanted to use the W3C validator to customize my Wordpress blog on the main page, he claimed 28 errors. For one of them was the following: Line 28, column 53: The end tag has been omitted for "meta", but omitip was not specified & lt; Meta name = "DC.Creator" content = "Raffel Harman" & gt; So I fixed it and clicked Modify again. Yet the verifier says that this error still exists. But if I look at the browser source code window from my web browser, then I can see that the changes can be successful. If I check "Show Source" in the options of W3C validation and reload my site, then I can see that the source code of my site uses the verifier, without change / Is old To explain to me why the W3C validator did not recognize my changes? If you do not want to see yourself, then my blog's URL. I know this is a little old, but I'm on the exact same issue, I found this thread , And then I found an easy solution. iss...

c# - A kinect cursor in unity -

I want to be able to work on the cursor in unity while using Connect. It is necessary that I do it as a plugin in the form of a Kinect SDK as plugin and not using Openya, IVE managed to do half of it but it is not really true. At this time ive worked on the X axis, but it does not cover the entire screen. It would be more ideal as per the beginning of the cursor at the center of the screen. At the moment when moving towards the right side of the screen, it goes half way. I do not count the hard codes in a float number but rather the screen. Unity was such a ceremony where you can increase the world Zero update () {if (sw.pollSkeleton ()) {distance.x = sw.bonePos [0,2] .x - sw.bonePos [0,7] .x; // bonops 0,2 spinal cord 0.7 is left / spinal position usually (0.1,1.2,0.3) / * debug. The log ("distance" + distance.x); * / / * * (-0.2,1.4,0.7) hand on the left side. // Originally near the particles this trime * (-0.3,1.0,0.6 ) Hand resonably high (-0.4,1.0,0.7) shoulder me...